package com.xhtt.modules.cfg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhtt.common.utils.PageUtils;
import com.xhtt.modules.cfg.entity.CfgTubeInfo;
import com.xhtt.modules.cfg.entity.CfgTubeRelate;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 硬管库 服务类
 * </p>
 *
 * @author feipc
 * @since 2019-02-21
 */
public interface CfgTubeInfoService extends IService<CfgTubeInfo> {

    PageUtils queryPage(Map<String, Object> params);

    void add(CfgTubeInfo cfgTubeInfo);

    void updateTube(CfgTubeInfo cfgTubeInfo);

    void updateRelateObject(List<CfgTubeRelate> relates);

    List<CfgTubeRelate> getRelateObject(Integer tubeId);

    void updateUsed(List<Integer> upTubeIds, Integer productId, String productName);

    void flushProduct(List<Integer> collect);

    // 导入
    void upload(Map<Long, Map<Integer, String>> map);

    // 导出
    void exportExcel(HttpServletResponse response, Map<String, Object> params);

    void updateUnUsed(List<Integer> upTubeIds);

    PageUtils logList(Map<String,Object> params);

    void updateRfid(CfgTubeInfo cfgTubeInfo);
}
